<template>
  <div class="wholeView">
    <el-table :data="tableData" v-loading="tableLoading" :header-cell-style="{
                background: '#0070C0',
                color: '#ffffff'
            }" style="width: 100%">
      <el-table-column fixed prop="areaId" align="center" label="支局id"></el-table-column>
      <el-table-column fixed prop="c4Name" align="center" label="区域"></el-table-column>
      <el-table-column fixed prop="c5Name" align="center" label="支局"></el-table-column>
      <el-table-column label="主营收入" align="center">
        <el-table-column prop="zyThisMonthIncome" align="center" label="本年累计"></el-table-column>
        <el-table-column prop="zyThisYearBudget" align="center" label="R2预算"></el-table-column>
        <el-table-column prop="zyCompleteYearBudget" align="center" label="预算进度">
            <template slot-scope="scope">
                <span>{{scope.row.zyCompleteYearBudget}}</span><span v-if="scope.row.zyCompleteYearBudget">%</span>
            </template>
        </el-table-column>
        <el-table-column prop="zyLastYearLjIncome" align="center" label="上年同期收入"></el-table-column>
        <el-table-column prop="zyTbYearInrease" align="center" label="同比增长率">
            <template slot-scope="scope">
                <span>{{scope.row.zyTbYearInrease}}</span><span v-if="scope.row.zyTbYearInrease">%</span>
            </template>
        </el-table-column>
        <el-table-column prop="zyRanking" align="center" label="同比增长率排名"></el-table-column>
      </el-table-column>
      <el-table-column label="码号收入" align="center">
        <el-table-column prop="mhthisMonthIncome" align="center" label="本月收入"></el-table-column>
        <el-table-column prop="mhlastMonthIncome" align="center" label="上月收入"></el-table-column>
        <el-table-column prop="mhhbMonInreaseAmt" align="center" label="环比增长"></el-table-column>
        <el-table-column prop="mhhbMonInrease" align="center" label="环比增长率">
            <template slot-scope="scope">
                <span>{{scope.row.mhhbMonInrease}}</span><span v-if="scope.row.mhhbMonInrease">%</span>
            </template>
        </el-table-column>
        <el-table-column prop="mhhbRanking" align="center" label="环比增长率排名"></el-table-column>
        <el-table-column prop="mhthisYearLjIncome" align="center" label="本年累计"></el-table-column>
        <el-table-column prop="mhthisYearBudget" align="center" label="预算"></el-table-column>
        <el-table-column prop="mhcompleteYearBudget" align="center" label="预算进度">
            <template slot-scope="scope">
                <span>{{scope.row.mhcompleteYearBudget}}</span><span v-if="scope.row.mhcompleteYearBudget">%</span>
            </template>
        </el-table-column>
        <el-table-column prop="mhlastYearLjIncome" align="center" label="上年同期"></el-table-column>
        <el-table-column prop="mhtbYearInrease" align="center" label="同比增长率">
            <template slot-scope="scope">
                <span>{{scope.row.mhtbYearInrease}}</span><span v-if="scope.row.mhtbYearInrease">%</span>
            </template>
        </el-table-column>
        <el-table-column prop="mhtbRanking" align="center" label="同比增长率排名"></el-table-column>
      </el-table-column>
      <el-table-column label="台阶收入" align="center">
        <el-table-column prop="tjthisMonthIncome" align="center" label="本月收入"></el-table-column>
        <el-table-column prop="tjlastMonthIncome" align="center" label="上月收入"></el-table-column>
        <el-table-column prop="tjhbMonInreaseAmt" align="center" label="环比增长"></el-table-column>
        <el-table-column prop="tjhbMonInrease" align="center" label="环比增长率">
            <template slot-scope="scope">
                <span>{{scope.row.tjhbMonInrease}}</span><span v-if="scope.row.tjhbMonInrease">%</span>
            </template>
        </el-table-column>
        <el-table-column prop="tjhbRanking" align="center" label="环比增长率排名"></el-table-column>
        <el-table-column prop="tjthisYearLjIncome" align="center" label="本年累计"></el-table-column>
        <el-table-column prop="tjlastYearLjIncome" align="center" label="上年同期"></el-table-column>
        <el-table-column prop="tjtbYearInrease" align="center" label="同比增长率">
            <template slot-scope="scope">
                <span>{{scope.row.tjtbYearInrease}}</span><span v-if="scope.row.tjtbYearInrease">%</span>
            </template>
        </el-table-column>
        <el-table-column prop="tjtbRanking" align="center" label="同比增长率排名"></el-table-column>
        <el-table-column prop="tjthisSeasonIncome" align="center" label="本季度月均"></el-table-column>
        <el-table-column prop="tjlastSeasonIncome" align="center" label="上季度月均"></el-table-column>
        <el-table-column prop="tjhbSeasonInrease" align="center" label="季度月均环比">
            <template slot-scope="scope">
                <span>{{scope.row.tjhbSeasonInrease}}</span><span v-if="scope.row.tjhbSeasonInrease">%</span>
            </template>
        </el-table-column>
        <el-table-column prop="thSeasonRanking" align="center" label="季度环比增长率排名"></el-table-column>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import $barCodeApi from "@/api/barCode/index";
export default {
  name: "wholeView",
  components: {

  },
  props: {
    form: {
      type: Object,
      default: {}
    }
  },
  data () {
    return {
      tableLoading: false,
      tableData: [],
    };
  },
  created () { },
  mounted () { },
  methods: {
    getList () {
      this.tableData = [];
      this.tableLoading = true;
      let obj = Object.assign({}, this.form);
      $barCodeApi.getBranchIncome({ ...obj }, res => {
        if (res.code == 0) {
          this.tableLoading = false;
          this.tableData = res.content;
        }
      });
    },
  }
};
</script>

<style scoped>
.area {
  color: #1890ff;
  cursor: pointer;
}
.breadcrumb {
  margin-bottom: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.breadItem {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.breadItem > div {
  margin-right: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}
.breadItem > p {
  padding: 0 10px;
  margin: 0;
}
.breadItem div:hover {
  color: #1890ff;
}
</style>
